package ${pkg};

import lombok.Data;
<#list imports as impt>
import ${impt};
</#list>

/**
* the ${entityName} type
*
* @author yangjun
*/
@Data
public class ${entityName} {

<#list fields as field>
    <#if field.fieldType == "List">
        @NotNull
        private ${field.fieldType}<${field.fieldName2}> ${field.fieldName};
    <#else>
        private ${field.fieldType} ${field.fieldName};
    </#if>

    <#if field.fieldName == "person">
        public static class ${field.fieldName2} {

        }
    </#if>
</#list>

}